package org.wxd.elastic.job.job;

import com.cxytiandi.elasticjob.annotation.ElasticJobConf;
import com.dangdang.ddframe.job.api.ShardingContext;
import com.dangdang.ddframe.job.api.simple.SimpleJob;

@ElasticJobConf(name = "demoJob",shardingItemParameters = "0=0,1=1,2=0,3=1",cron = "0/5 * * * * ?",shardingTotalCount = 2)
public class DemoJob implements SimpleJob {

    @Override
    public void execute(ShardingContext shardingContext) {
        System.out.println("job:  " + shardingContext);
    }
}
